#include <math.h>

char *convert_int_str(pid_t);

char * convert_int_str(pid_t number)
{
    pid_t n = log10(number) + 1;
    int i;
    char *numberArray = calloc((int)n, sizeof(char));
    for ( i = 0; i < n; ++i, number /= 10 )
    {
        numberArray[i] = number % 10;
    }
    return numberArray;
}
